package com.zr.model;
/**
 * 构建hostel模型
 * @author 曾鹏
 *
 */
public class HostelModel {

	private int hid;//寝室编号
	private String hname;//寝室名称
	private String hbuiding;//寝室在几栋
	private int hnumber,count;//寝室能够容纳的人数
	//寝室的所有属性值的set和get方法
	
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}

	public int getHid() {
		return hid;
	}
	public void setHid(int hid) {
		this.hid = hid;
	}
	public String getHname() {
		return hname;
	}
	public void setHname(String hname) {
		this.hname = hname;
	}
	public String getHbuiding() {
		return hbuiding;
	}
	public void setHbuiding(String hbuiding) {
		this.hbuiding = hbuiding;
	}
	public int getHnumber() {
		return hnumber;
	}
	public void setHnumber(int hnumber) {
		this.hnumber = hnumber;
	}

	//构造方法

	public HostelModel(int hid, String hname, String hbuiding, int hnumber) {

		super();
		this.hid = hid;
		this.hname = hname;
		this.hbuiding = hbuiding;
		this.hnumber = hnumber;
	}
	public HostelModel(String hname, String hbuiding, int hnumber) {
		super();
		this.hname = hname;
		this.hbuiding = hbuiding;
		this.hnumber = hnumber;
	}
	public HostelModel() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return hid+hname+hnumber+hbuiding+count;
	}
	

}
